package com.supor.aiot.mine.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * ---------------------------------------------------------------- <br>
 * Copyright (C) 2014-2021, by het, ShenZhen, All rights reserved.  <br>
 * ---------------------------------------------------------------- <br>
 * <p>
 * // 心愿单主键ID wishId
 * // 用户编号 bossUserId
 * // 用户名称 nickName
 * // 型号编号/设备名称 modelName
 * // 产品编码 modelId
 * // 心愿单名称 wishName
 * // 心愿单描述 wishDescription
 * // 心愿单图片预留字段 wishImage
 * // 口味选择 tastes
 * // 是否上架通知 isNotified 0：未上架，1：已上架
 * // 是否满意 isSatisfied 0：不满意，1：满意
 * // 创建时间 createTime
 * // 备注 remark
 * 描述: WishBean <br>
 * 作者: lei <br>
 * 日期: 2021/8/31 <br>
 */
public class WishBean implements Parcelable {
    /**
     * 心愿单ID
     */
    public String wishId;
    /**
     * 用户编号
     */
    public String bossUserId;
    /**
     * 用户名称
     */
    public String nickName;
    /**
     * 型号编号/设备名称
     */
    public String modelName;
    /**
     * 产品编码
     */
    public String modelId;
    /**
     * 心愿名称
     */
    public String wishName;
    /**
     * 心愿描述
     */
    public String wishDescription;
    /**
     * 口味选择
     */
    public String tastes;
    /**
     * 上架后通知: 0：未上架，1：已上架
     */
    public int isNotified;
    /**
     * 是否满意: 0：不满意，1：满意
     */
    public int isSatisfied;
    /**
     * 创建时间
     */
    public String createTime;

    public WishBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.wishId);
        dest.writeString(this.bossUserId);
        dest.writeString(this.nickName);
        dest.writeString(this.modelName);
        dest.writeString(this.modelId);
        dest.writeString(this.wishName);
        dest.writeString(this.wishDescription);
        dest.writeString(this.tastes);
        dest.writeInt(this.isNotified);
        dest.writeInt(this.isSatisfied);
        dest.writeString(this.createTime);
    }

    protected WishBean(Parcel in) {
        this.wishId = in.readString();
        this.bossUserId = in.readString();
        this.nickName = in.readString();
        this.modelName = in.readString();
        this.modelId = in.readString();
        this.wishName = in.readString();
        this.wishDescription = in.readString();
        this.tastes = in.readString();
        this.isNotified = in.readInt();
        this.isSatisfied = in.readInt();
        this.createTime = in.readString();
    }

    public static final Creator<WishBean> CREATOR = new Creator<WishBean>() {
        @Override
        public WishBean createFromParcel(Parcel source) {
            return new WishBean(source);
        }

        @Override
        public WishBean[] newArray(int size) {
            return new WishBean[size];
        }
    };
}
